package com.github.wxiaoqi.security.common.util;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

public class OrderUtils {
	//订单号生成
	public static String genUniOrder() {
		String no = DateFormatUtils.format(new Date(), DateUtil.DATE_FORMAT_NANOSECODS_PATTERN);
		for (int i = 0; i < 10; i++) {
			no += String.valueOf((int) (Math.random() * (10)));
		}
		return no;
	}
}
